package com.huang.consumer_mall.service;

import com.huang.consumer_mall.dao.OrderItemDao;
import com.huang.consumer_mall.model.OrderItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderItemService extends BaseService<OrderItemDao, OrderItem> {
    @Autowired
    protected OrderItemDao dao;

    public List<OrderItem> findOrderList(Integer orderId){
        return dao.findOrderList(orderId);
    }

    public List<OrderItem> findOrderitem(OrderItem orderItem){
        return dao.findOrderitem(orderItem);
    }
}
